package assist.client.gwt.view.event;


import com.google.gwt.dev.ui.UiEvent.Type;
import com.google.gwt.event.shared.GwtEvent;

public class EditGamesEvent extends GwtEvent<EditGamesEventHandler> 
{
    private boolean mode;
    public EditGamesEvent(boolean mode)
    {
        this.mode = mode;
    }
    public static Type<EditGamesEventHandler> TYPE = new Type<EditGamesEventHandler>();
    @Override
    public Type<EditGamesEventHandler> getAssociatedType() 
    {
        return TYPE;
    }
    @Override
    protected void dispatch(EditGamesEventHandler handler)
    {
        handler.onEditGamesMode(this.mode);
    }    
}
